/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn;

import cn.webrx.config.SpringConfig;
import cn.webrx.pojo.User;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;

/**
 * <p>Project: spring2021 - SpringDemo
 * <p>Powered by webrx On 2021-11-03 16:30:30
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */

@ExtendWith(SpringExtension.class)
@ContextConfiguration(classes = SpringConfig.class)
@Slf4j
public class SpringDemo {
    @Autowired
    private User user;

    @Test @DisplayName("测试t1,实现输出")
    public void t1(){
        System.out.println("hello ");
        System.out.println(user);

        log.debug("debug");
    }
}
